#pragma once

#include "CmdHandler3.h"

class MultiSectionCylinder;
class MultiSectionCylinderHandler : public CmdHandler3
{
	Q_OBJECT
public:
	Q_INVOKABLE MultiSectionCylinderHandler();
	~MultiSectionCylinderHandler();

	virtual void input(const QVariant& data, const QString& rawInput, CommandSource cs) override;
private:
	std::shared_ptr<MultiSectionCylinder> m_cylinders;
	osg::Vec3d m_point;
	osg::Vec3d m_start, m_end, m_axis;
	double m_bottomDiameter = 0;
	double m_topDiameter = 0;
	double m_height = 0;
	
};
